import Network from '@/utils/request'

// 获取权限
export const getPermissionList = (params) => Network.get('/sys/permission', params)
// 获取权限详情
export const getPermissionDetail = (id) => Network.get(`/sys/permission/${id}`)
// 新增权限
export const addPermission = (data) => Network.post('/sys/permission', data)
// 更新权限
export const updatePermission = (data) => Network.put(`/sys/permission/${data.id}`, data)
// 删除权限
export const delPermission = (id) => Network.delete(`/sys/permission/${id}`)
